<%@include file="_header.jsp"%>
<title>32Learn</title>
</head>
<body>
    <c:choose>
        <c:when test="${userLevel == null && tryOut == null}">
            <%@include file="errorPage.jsp"%>
        </c:when><c:otherwise>
            <%@include file="_menu.jsp"%>

            <div class="sidebar">

                <div class="redbar"><a href="#"><div id="bar-textcontent">${courseName}</div></a>
                </div>
                <div id="sidescreen">

                    <ul class="thumbnails">
                        <li class="span4">
                            <div class="thumbnail">
                                <h3>${inhoud.courseViewT8}</h3>
                                <img src="icons/view_courses.png" alt="">

                                <p></p>
                            </div>
                        </li>
                    </ul>


                </div>



            </div>

            <div class="wrappermain">


                <div class="digitalclass">
                    <div id="subheader"> <div id="bar-textcontent">${inhoud.courseViewT8}</div> </div>






                    <div class="main-digital">
                        <h3>${melding}</h3><table class="table">
                            <td>${inhoud.changeCourseT}</td>
                            <td>Module</td>
                            <td>${inhoud.description}</td>
                            <td>${inhoud.planClassT}</td>
                            <td>${inhoud.planClassT2}</td>
                            <td>${inhoud.planClassT3}</td>
                            <td>Max<br>students</td>
                            <td>&nbsp;</td>
                            <c:forEach var="curClass" items="${digitalClasses}">
                                <tr>
                                    <td>
                                        ${curClass.course.courseName}
                                    </td>
                                    <td>
                                        ${curClass.module.moduleName}   
                                    </td>
                                    <td>
                                        ${curClass.description}
                                    </td>      
                                    <td>
                                        ${curClass.date}
                                    </td>          
                                    <td>
                                        ${curClass.startTime}
                                    </td>      
                                    <td>
                                        ${curClass.endTime}
                                    </td>      
                                    <td>
                                        ${curClass.maxStudents}
                                    </td>         
                                    <td>
                                        <a href="subscribe_to_digitalclass?ID=${curClass.digitalClassID}"><img src="icons/next_button.png"></a>
                                    </td>
                                </tr>
                                ${digitalClass.maxStudents}
                            </c:forEach>
                        </table>


                    </div>
                </div>
            </div>
        </c:otherwise></c:choose>
</body>
</html>
